<%@ Page language="c#" CodeFile="EditFile.aspx.cs" AutoEventWireup="false" Inherits="EditFile_" %>
<%@ Register TagPrefix="FileManager" TagName="Header" src="Header.ascx" %>
<%@ Register TagPrefix="FileManager" TagName="Footer" src="Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>FileManager: text editor</title>
		<link rel="stylesheet" HREF="/ThePhile/Styles/ThePhile.css" TYPE="text/css">
			<meta name="CODE_LANGUAGE" Content="C#">
	</head>
	<body>
		<FileManager:Header ID="Title" runat="server" />
		<form ID="EditFile" method="post" runat="server">
			<asp:Table runat="server" CssClass="Grid_General" Width="100%">
				<asp:TableRow CssClass="Grid_Header">
					<asp:TableCell HorizontalAlign="Center" Text="EDIT TEXT FILE" Font-Bold="True" />
				</asp:TableRow>
				<asp:TableRow>
					<asp:TableCell HorizontalAlign="Center">
						<asp:TextBox runat="server" Width="99%" Rows="20" TextMode="MultiLine" ID="FileContent" CssClass="TextBox" />
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow>
					<asp:TableCell HorizontalAlign="Right" Text="Save As:">
						<asp:TextBox runat="server" Width="350px" ID="SaveAsPath" CssClass="TextBox" />
						<asp:Button runat="server" Text="Save" ID="Save" CssClass="Button" Width="80px" OnClick="Save_Click" />&nbsp;
						<asp:Button runat="server" Text="Back to FileManager" ID="Back" CssClass="Button" Width="150px" OnClick="Back_Click" CausesValidation="False" />
					</asp:TableCell>
				</asp:TableRow>
				<asp:TableRow>
					<asp:TableCell HorizontalAlign="Right">
						<asp:RequiredFieldValidator ID="ValidateSaveAsPath" runat="server" ControlToValidate="SaveAsPath" Display="dynamic">* The Save As path is required
					</asp:RequiredFieldValidator>
						<asp:Label runat="server" ID="StatusMessage" CssClass="StatusMessage" Visible="False" Width="100%" />
					</asp:TableCell>
				</asp:TableRow>
			</asp:Table>
			<br>
		</form>
		<FileManager:Footer ID="Footer" runat="server" />
	</body>
</html>
